<template>
    <div class="fixNav" @click="fixNavShow=!fixNavShow">
        <div class="fixNavBox" v-show="fixNavShow">
            <router-link to='/' class="hP">首页</router-link>
            <router-link to='/classify' class="cP">分类</router-link>
            <router-link to='/shop' class="sP">购物车</router-link>
            <router-link to='/form' class="fP">订单</router-link>
            <router-link to='/my' class="mP">我的</router-link>
            <span class="blackAngel"></span>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            fixNavShow:false
        }
    },
}
</script>

<style scoped lang='scss'>
.fixNav {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 290px;
    width: 84px;
    height: 84px;
    background: rgba(0, 0, 0, 0.8) url(/static/details/bm.png) 16px 16px no-repeat;
    background-size: 152px 46px;
    border: 2px solid #757575;
    border-radius: 9px 0 0 9px;
    .fixNavBox {
        position: absolute;
        right: -2px;
        bottom: 97px;
        width: 222px;
        border: 2px solid #757575;
        background: rgba(0, 0, 0, 0.8);
        a {
            display: block;
            padding-left: 88px;
            border-bottom: 2px solid #4b4b4b;
            line-height: 81px;
            height: 81px;
            color: #fff;
            background: url(/static/details/bmenu.png) no-repeat;
            background-size: 37px 703px;
            text-decoration: none;
            font-size: 33px;
        }
        .hP {
            background-position: 23px -117px;
        }
        .cP {
            background-position: 23px -234px;
        }
        .sP {
            background-position: 23px -351px;
        }
        .fP {
            background-position: 23px -468px;
        }
        .mP {
            background-position: 23px -585px;
        }
        .blackAngel {
            position: absolute;
            bottom: -28px;
            right: 23px;
            width: 0;
            height: 0;
            z-index: 15;
            border-width: 14px;
            border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
            border-style: solid;
        }
    }
}
</style>
